import {useContext} from "react"
import { UserContext } from "./ComA"

function ComD() {

    const user = useContext(UserContext)

    return (
        <div className="box">
            <h1>ComC</h1>
            <h2>Bye,{user}</h2>
            {/* <h2>{`Bye,${user}`}</h2> */}
        </div>
    )
}

export default ComD